/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: Lenovo
 * Date: 2024-09-12
 * Time: 10:50
 */
public class Demo {

    int num;

    public static void main(String[] args) {

//        sum(1,2);
//
//        sum(1,2,3);
//        sum(1,2,3,6);

        /*求和
         * 2+3
         * 3+4
         * 4+5
         * ......
         * */

//        int result = sum(1,2);
//        System.out.println(sum(3,2));

    }



//    public static void sum(int x , int y){
////        return x+y;
//    }


    // 获取用户通过用户的id  getUserByUserId    getuserbyuserid  除了首单词外所有的单词首字母大写
//    public void



    public static void sum(int x,String y){
        System.out.println(x+y);
    }

    public static void sum(String a,int b){
        System.out.println(a+b);
    }

    public static void sum(int x,int y,int z){
        System.out.println(x+y+z);
    }

    public static void sum(int x,int y,int z,int o){
        System.out.println(x+y+z+o);
    }
}
